package com.itheima.tliassystem.controller;


import com.itheima.tliassystem.service.OrdersServive;
import entity.Orders;
import entity.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RequestMapping("/admin")
@RestController
public class OrdersController {
    @Autowired
    OrdersServive ordersServive;
    @GetMapping("id")
    public Result list(@PathVariable Integer id){
return Result.success();
    }
    @PostMapping()
    public Result add(@RequestBody Orders orders){
        ordersServive.add(orders);
        return Result.success();
    }

}
